package com.jingdun.sport.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdun.sport.bean.model.GetPerPayDetailResp;
import com.jingdun.sport.bean.model.NewSOrder;
import com.jingdun.sport.dao.NewSOrderMapper;
import com.jingdun.sport.service.NewSOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NewSOrderServiceImpl extends ServiceImpl<NewSOrderMapper, NewSOrder> implements NewSOrderService {

    @Autowired
    private NewSOrderMapper newSOrderMapper;

    @Override
    public List<GetPerPayDetailResp> getPerPayDetail(IPage<GetPerPayDetailResp> perPayDetailRespPageParam) {
        return newSOrderMapper.getPerPayDetail(perPayDetailRespPageParam);
    }

    @Override
    public Map<String, Double> getAllPay() {
        return newSOrderMapper.getAllPay();
    }
}
